package com.zq.designpaterns.behavior.strategy;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/15  13:39
 * 修改日期：
 * 描    述：
 * 修订历史：
 * ================================================
 */
public class Context {
    private  Strategy strategy;

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int m, int n) {
        return strategy.doOperation(m, n);
    }
}
